package com.mcgrady.start;

import org.junit.Test;

/**
 * @author McGrady
 */
public class StringRamTest {
    @Test
    public void baseTypeCompare(){
        double numA = 100.0;
        int numB = 50*2;
        System.out.println(numA == numB);
    }
    @Test
    public void referenceTypeCompare(){
        String strA = new String("abc");
        String strB = new String("abc");
        System.out.println(strA == strB);

        String strC = new String("abc");
        String strD = new String("abc");
        System.out.println(strC.equals(strD));
    }
}
